(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["chunk-3701f530"], {
    "2ef0": function (t, e, n) {},
    "2f3b": function (t, e, n) {
      "use strict";
  
      n.d(e, "g", function () {
        return a;
      }), n.d(e, "f", function () {
        return i;
      }), n.d(e, "e", function () {
        return s;
      }), n.d(e, "d", function () {
        return o;
      }), n.d(e, "b", function () {
        return l;
      }), n.d(e, "c", function () {
        return c;
      }), n.d(e, "a", function () {
        return u;
      });
      var r = n("365c"),
        a = function (t) {
          var e = "MainPage/getTodoList";
          return Object(r["j"])(e, t);
        },
        i = function (t) {
          var e = "MainPage/getNews";
          return Object(r["j"])(e, t);
        },
        s = function (t) {
          var e = "SalesInventory/WeeklyRankingList";
          return Object(r["j"])(e, t);
        },
        o = function (t) {
          var e = "SalesInventory/MonthRankingList";
          return Object(r["j"])(e, t);
        },
        l = function (t) {
          var e = "Login/ModifyUser";
          return Object(r["j"])(e, t);
        },
        c = function (t) {
          var e = "Login/ModifyUserNew";
          return Object(r["j"])(e, t);
        },
        u = function (t) {
          var e = "Notice/GetNotice";
          return Object(r["i"])(e, t);
        };
    },
    "352e": function (t, e, n) {
      "use strict";
  
      var r = n("2ef0"),
        a = n.n(r);
      a.a;
    },
    "394b": function (t, e, n) {},
    b3ba: function (t, e, n) {
      "use strict";
  
      var r = function () {
          var t = this,
            e = t.$createElement,
            n = t._self._c || e;
          return n("div", {
            staticClass: "container_box_wrap"
          }, [n("el-row", [n("el-col", {
            attrs: {
              span: 6
            }
          }, [n("el-progress", {
            attrs: {
              percentage: t.onePercentage,
              color: "oneCustomColors",
              format: t.oneFormat,
              "stroke-width": 3
            }
          })], 1), n("el-col", {
            attrs: {
              span: 6,
              offset: 1
            }
          }, [n("el-progress", {
            attrs: {
              percentage: t.twoPercentage,
              color: t.twoCustomColors,
              format: t.twoFormat,
              "stroke-width": 3
            }
          })], 1), n("el-col", {
            attrs: {
              span: 6,
              offset: 1
            }
          }, [n("el-progress", {
            attrs: {
              percentage: t.ThreePercentage,
              color: t.ThreeCustomColors,
              format: t.ThreeFormat,
              "stroke-width": 3
            }
          })], 1), n("el-col", {
            staticStyle: {
              "line-height": "15px"
            },
            attrs: {
              span: 2,
              offset: 1
            }
          }, [t._v("\n      " + t._s(t.content) + "\n    ")])], 1)], 1);
        },
        a = [],
        i = (n("c5f6"), {
          name: "PasswordStrength",
          model: {
            event: "change",
            prop: "password"
          },
          props: {
            password: {
              type: [String, Boolean, Number, Object],
              required: true,
              default: ""
            }
          },
          watch: {
            password: function (t) {
              var e = this.checkPasswordStrength(t);
              switch (e) {
                case 0:
                  this.content = "", this.onePercentage = 0, this.twoPercentage = 0, this.ThreePercentage = 0;
                  break;
                case 1:
                  this.content = "弱", this.onePercentage = 100, this.twoPercentage = 0, this.ThreePercentage = 0;
                  break;
                case 2:
                  this.content = "中", this.onePercentage = 100, this.twoPercentage = 100, this.ThreePercentage = 0;
                  break;
                case 3:
                  this.content = "中", this.onePercentage = 100, this.twoPercentage = 100, this.ThreePercentage = 0;
                  break;
                default:
                  this.content = "高", this.onePercentage = 100, this.twoPercentage = 100, this.ThreePercentage = 100;
                  break;
              }
            }
          },
          data: function () {
            return {
              content: "",
              onePercentage: 0,
              twoPercentage: 0,
              ThreePercentage: 0,
              oneCustomColors: "#f56c6c",
              twoCustomColors: "#e6a23c",
              ThreeCustomColors: "#67c23a"
            };
          },
          methods: {
            oneFormat: function () {
              return "";
            },
            twoFormat: function () {
              return "";
            },
            ThreeFormat: function () {
              return "";
            },
            checkPasswordStrength: function (t) {
              var e = 0;
              return t.length < 1 ? e : (/\d/.test(t) && e++, /[a-z]/.test(t) && e++, /[A-Z]/.test(t) && e++, /\W/.test(t) && e++, e);
            }
          }
        }),
        s = i,
        o = (n("d57f"), n("2877")),
        l = Object(o.a)(s, r, a, false, null, null, null);
      e.a = l.exports;
    },
    b3d7: function (t, e, n) {
      "use strict";
  
      n.r(e);
      var r = function () {
          var t = this,
            e = t.$createElement,
            r = t._self._c || e;
          return r("div", {
            directives: [{
              name: "loading",
              rawName: "v-loading.fullscreen.lock",
              value: t.dialogLoading,
              expression: "dialogLoading",
              modifiers: {
                fullscreen: true,
                lock: true
              }
            }],
            staticClass: "home-wrap cont-wrap"
          }, [t._m(0), r("div", {
            staticClass: "home-cont"
          }, [r("div", {
            staticClass: "module-group clearfix"
          }, [r("div", {
            directives: [{
              name: "loading",
              rawName: "v-loading",
              value: t.todoListLoading,
              expression: "todoListLoading"
            }],
            staticClass: "group-item todo fl"
          }, [r("div", {
            staticClass: "todo-head clearfix"
          }, [r("p", {
            directives: [{
              name: "permission",
              rawName: "v-permission",
              value: "R001001001",
              expression: "'R001001001'"
            }],
            on: {
              click: function (e) {
                t.dialogVisible = true;
              }
            }
          }, [t._v("修改密码")]), r("img", {
            attrs: {
              src: n("bcef"),
              alt: "avatar2"
            }
          })]), r("div", {
            staticClass: "todo-list-wrap"
          }, [r("h3", [t._v("待办事项")]), r("ul", {
            staticClass: "todo-list clearfix"
          }, t._l(t.todoList, function (e, n) {
            return r("li", {
              key: n,
              staticClass: "fl",
              on: {
                click: function (n) {
                  t.toDetail(e.YWLXBH, e.SL);
                }
              }
            }, [r("span", [t._v(t._s(e.YWLX))]), r("i", [t._v(t._s(e.SL))])]);
          }))])]), r("div", {
            directives: [{
              name: "loading",
              rawName: "v-loading",
              value: t.newListLoading,
              expression: "newListLoading"
            }],
            staticClass: "group-item notice fl"
          }, [t._m(1), t.newList.length ? r("ul", {
            staticClass: "notice-list"
          }, t._l(t.newList, function (e, n) {
            return r("li", {
              key: n,
              staticClass: "notice-item"
            }, [r("dl", {
              staticClass: "clearfix"
            }, [r("dt", {
              staticClass: "fl",
              on: {
                click: function (n) {
                  t.toAnnouncement(e.ID);
                }
              }
            }, [r("span", [t._v(t._s(e.Xxbt))])]), r("dd", {
              staticClass: "fr"
            }, [t._v(t._s(t.formatTime(e.Fbrq)))])])]);
          })) : r("ul", {
            staticClass: "notice-list"
          }, [t._m(2)])])]), r("div", {
            staticClass: "module-group ranking clearfix"
          }, [r("div", {
            directives: [{
              name: "loading",
              rawName: "v-loading",
              value: t.rankWeekLoading,
              expression: "rankWeekLoading"
            }],
            staticClass: "group-item rank-week fl"
          }, [t._m(3), r("el-table", {
            ref: "tableEl",
            staticClass: "table-cont",
            attrs: {
              data: t.rankWeekList,
              height: "300",
              stripe: "",
              "highlight-current-row": ""
            }
          }, [r("el-table-column", {
            attrs: {
              prop: "",
              label: "#",
              width: "80",
              fixed: ""
            },
            scopedSlots: t._u([{
              key: "default",
              fn: function (e) {
                return [r("span", [t._v(t._s(t.calcOrder(e.$index)))])];
              }
            }])
          }), r("el-table-column", {
            attrs: {
              prop: "PM",
              label: "商品名称",
              "min-width": "240"
            },
            scopedSlots: t._u([{
              key: "default",
              fn: function (e) {
                return [r("div", {
                  staticClass: "ellipsis-wrap",
                  attrs: {
                    title: e.row.PM
                  }
                }, [t._v(t._s(e.row.PM))])];
              }
            }])
          }), r("el-table-column", {
            attrs: {
              prop: "XSSL",
              label: "册数",
              "min-width": "120"
            },
            scopedSlots: t._u([{
              key: "default",
              fn: function (e) {
                return [r("div", {
                  staticClass: "ellipsis-wrap",
                  attrs: {
                    title: e.row.XSSL
                  }
                }, [t._v(t._s(e.row.XSSL))])];
              }
            }])
          })], 1)], 1), r("div", {
            directives: [{
              name: "loading",
              rawName: "v-loading",
              value: t.rankMonthLoading,
              expression: "rankMonthLoading"
            }],
            staticClass: "group-item rank-month fl"
          }, [t._m(4), r("el-table", {
            ref: "tableEl",
            staticClass: "table-cont",
            attrs: {
              data: t.rankMonthList,
              height: "300",
              stripe: "",
              "highlight-current-row": ""
            }
          }, [r("el-table-column", {
            attrs: {
              prop: "",
              label: "#",
              width: "80",
              fixed: ""
            },
            scopedSlots: t._u([{
              key: "default",
              fn: function (e) {
                return [r("span", [t._v(t._s(t.calcOrder(e.$index)))])];
              }
            }])
          }), r("el-table-column", {
            attrs: {
              prop: "PM",
              label: "商品名称",
              "min-width": "160"
            }
          }), r("el-table-column", {
            attrs: {
              prop: "XSSL",
              label: "册数",
              "min-width": "120"
            }
          })], 1)], 1)])]), r("el-dialog", {
            attrs: {
              "custom-class": "dialogEditPassword",
              title: "修改密码",
              "before-close": t.handleClose,
              visible: t.dialogVisible,
              center: "",
              width: "580px"
            },
            on: {
              "update:visible": function (e) {
                t.dialogVisible = e;
              }
            }
          }, [r("el-form", {
            ref: "formPw",
            staticClass: "form-inline clearfix",
            attrs: {
              model: t.formPw,
              rules: t.rules,
              "label-width": "110px",
              "label-position": "left",
              inline: true
            }
          }, [r("el-form-item", {
            staticClass: "form-input fl",
            attrs: {
              label: "原密码：",
              prop: "PW"
            }
          }, [r("el-input", {
            attrs: {
              type: "password",
              placeholder: "",
              clearable: "",
              "show-password": ""
            },
            model: {
              value: t.formPw.PW,
              callback: function (e) {
                t.$set(t.formPw, "PW", "string" === typeof e ? e.trim() : e);
              },
              expression: "formPw.PW"
            }
          })], 1), r("el-form-item", {
            staticClass: "form-input my_tips fl",
            attrs: {
              label: ""
            }
          }, [r("span", {
            staticClass: "err_tip"
          }, [t._v("新密码要求：大小写字母、数字、特殊字符[如：!、@、$等]四者取其三或以上，且必须8-20位字符。")])]), r("el-form-item", {
            staticClass: "form-input new_password fl",
            attrs: {
              label: "新密码：",
              prop: "NP"
            }
          }, [r("el-input", {
            attrs: {
              type: "password",
              placeholder: "",
              clearable: "",
              "show-password": "",
              "show-message": false
            },
            nativeOn: {
              input: function (e) {
                return t.handleInputNP(e);
              }
            },
            model: {
              value: t.formPw.NP,
              callback: function (e) {
                t.$set(t.formPw, "NP", "string" === typeof e ? e.trim() : e);
              },
              expression: "formPw.NP"
            }
          }), t.formPw.NP.trim().length ? r("paw-strength", {
            staticStyle: {
              "padding-top": "10px"
            },
            model: {
              value: t.formPw.NP,
              callback: function (e) {
                t.$set(t.formPw, "NP", e);
              },
              expression: "formPw.NP"
            }
          }) : t._e()], 1), r("el-form-item", {
            staticClass: "form-input fl",
            attrs: {
              label: "确认密码：",
              prop: "CP"
            }
          }, [r("el-input", {
            attrs: {
              type: "password",
              placeholder: "",
              clearable: "",
              "show-password": ""
            },
            nativeOn: {
              input: function (e) {
                return t.handleInputCP(e);
              }
            },
            model: {
              value: t.formPw.CP,
              callback: function (e) {
                t.$set(t.formPw, "CP", "string" === typeof e ? e.trim() : e);
              },
              expression: "formPw.CP"
            }
          })], 1)], 1), r("span", {
            staticClass: "dialog-footer",
            attrs: {
              slot: "footer"
            },
            slot: "footer"
          }, [r("el-button", {
            attrs: {
              type: "primary"
            },
            on: {
              click: t.handleSubmit
            }
          }, [t._v("提 交")]), r("el-button", {
            staticClass: "btn-cancel",
            on: {
              click: t.handleCancel
            }
          }, [t._v("取 消")])], 1)], 1)], 1);
        },
        a = [function () {
          var t = this,
            e = t.$createElement,
            n = t._self._c || e;
          return n("div", {
            staticClass: "operate-top"
          }, [n("div", {
            staticClass: "operate-wrap"
          }, [n("h4", {
            staticClass: "fl"
          }, [t._v("首页")])])]);
        }, function () {
          var t = this,
            e = t.$createElement,
            n = t._self._c || e;
          return n("h3", [n("span", [t._v("公告")])]);
        }, function () {
          var t = this,
            e = t.$createElement,
            n = t._self._c || e;
          return n("li", {
            staticClass: "empty-text"
          }, [n("span", [t._v("暂无数据")])]);
        }, function () {
          var t = this,
            e = t.$createElement,
            n = t._self._c || e;
          return n("h3", [n("span", [t._v("上周销售前30名商品排行")])]);
        }, function () {
          var t = this,
            e = t.$createElement,
            n = t._self._c || e;
          return n("h3", [n("span", [t._v("上月销售前30名商品排行")])]);
        }],
        i = (n("8e6e"), n("ac6a"), n("456d"), n("a481"), n("bd86")),
        s = (n("4917"), n("2f62")),
        o = n("510f"),
        l = n("8b55"),
        c = n("b3ba"),
        u = n("2f3b"),
        d = n("f121");
      function f(t, e) {
        var n = Object.keys(t);
        if (Object.getOwnPropertySymbols) {
          var r = Object.getOwnPropertySymbols(t);
          e && (r = r.filter(function (e) {
            return Object.getOwnPropertyDescriptor(t, e).enumerable;
          })), n.push.apply(n, r);
        }
        return n;
      }
      function h(t) {
        for (var e = 1; e < arguments.length; e++) {
          var n = null != arguments[e] ? arguments[e] : {};
          e % 2 ? f(n, true).forEach(function (e) {
            Object(i.a)(t, e, n[e]);
          }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : f(n).forEach(function (e) {
            Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e));
          });
        }
        return t;
      }
      var g = {
          name: "Home",
          data: function () {
            var t = this,
              e = function (e, n, r) {
                if ("" === n) r(new Error("请输入新密码"));else {
                  var a = 0;
                  if ("" !== t.formPw.NP) switch (t.formPw.NP.match(/([a-z])+/) && a++, t.formPw.NP.match(/([0-9])+/) && a++, t.formPw.NP.match(/([A-Z])+/) && a++, t.formPw.NP.match(/([\W])+/) && !t.formPw.NP.match(/(![一-龥])+/) && a++, (t.formPw.NP.length < 8 || t.formPw.NP.length > 20) && (r(new Error(" ")), a = 0), t.formPw.NP.match(/([一-龥])+/) && (r(new Error("不能包含中文字符")), a = 0), a) {
                    case 0:
                      r(new Error(" "));
                      break;
                    case 1:
                      r(new Error(" "));
                      break;
                    case 2:
                      r(new Error(" "));
                      break;
                    case 3:
                    case 4:
                      break;
                    default:
                      break;
                  }
                  r();
                }
              },
              n = function (e, n, r) {
                "" === n ? r(new Error("请再次确认密码!")) : n !== t.formPw.NP ? r(new Error("两次输入的密码不匹配，请重新输入！")) : r();
              };
            return {
              dialogLoading: false,
              onOff: false,
              timer: null,
              PageNo: 1,
              PageSize: d.a.PAGE_SIZE,
              RankingPageSize: d.a.RANKING_PAGE_SIZE,
              rankWeekLoading: false,
              rankMonthLoading: false,
              todoListLoading: false,
              newListLoading: false,
              rankWeekList: [],
              rankMonthList: [],
              todoList: [],
              newList: [],
              dialogVisible: false,
              formPw: {
                PW: "",
                NP: "",
                CP: ""
              },
              rules: {
                PW: [{
                  required: true,
                  message: "请输入原密码",
                  trigger: "blur"
                }],
                NP: [{
                  required: true,
                  validator: e,
                  trigger: ["blur", "change"]
                }, {
                  min: 8,
                  max: 20,
                  message: "长度在 8 到 20 个字符",
                  trigger: "blur"
                }],
                CP: [{
                  required: true,
                  validator: n,
                  trigger: "blur"
                }]
              }
            };
          },
          components: {
            PawStrength: c.a
          },
          mixins: [o.a],
          computed: {
            User: function () {
              return Object(l["b"])("js_supplier");
            },
            SupplierNo: function () {
              var t = this.User;
              return t ? t.SupplierNo : "";
            },
            UserId: function () {
              var t = this.User;
              return t ? t.UserId : "";
            },
            UserName: function () {
              var t = this.User;
              return t ? t.UserName : "";
            }
          },
          created: function () {
            this.rankWeekLoading = true, this.rankMonthLoading = true, this.todoListLoading = true, this.newListLoading = true, this.init();
          },
          mounted: function () {},
          methods: h({}, Object(s["c"])(["updateLoading"]), {
            init: function () {
              this.initWeekData(), this.initMonthData(), this.initTodoList(), this.initNews();
            },
            initWeekData: function () {
              var t = this,
                e = this.RankingPageSize,
                n = this.SupplierNo,
                r = {
                  PageNo: 1,
                  PageSize: e,
                  GysId: n
                };
              Object(u["e"])(r).then(this.globelReqHandle).then(function (e) {
                var n = e.data,
                  r = n.Data,
                  a = (n.Msg, n.Code, r.List);
                r.Total;
                if (!a.length) return t.rankWeekList = [], t.rankWeekLoading = false, false;
                t.rankWeekList = a, setTimeout(function () {
                  return t.rankWeekLoading = false;
                }, 500);
              }).catch(this.globelErrHandle);
            },
            initMonthData: function () {
              var t = this,
                e = this.RankingPageSize,
                n = this.SupplierNo,
                r = {
                  PageNo: 1,
                  PageSize: e,
                  GysId: n
                };
              Object(u["d"])(r).then(this.globelReqHandle).then(function (e) {
                var n = e.data,
                  r = n.Data,
                  a = (n.Msg, n.Code, r.List);
                r.Total;
                if (!a.length) return t.rankMonthList = [], t.rankMonthLoading = false, false;
                t.rankMonthList = a, setTimeout(function () {
                  return t.rankMonthLoading = false;
                }, 500);
              }).catch(this.globelErrHandle);
            },
            initTodoList: function () {
              var t = this,
                e = this.SupplierNo,
                n = {
                  Gysid: e,
                  isProc: 1
                };
              Object(u["g"])(n).then(this.globelReqHandle).then(function (e) {
                var n = e.data,
                  r = n.Data;
                n.Msg, n.Total;
                if (!r.length) return t.todoList = [], false;
                t.todoList = r;
              }).then(function () {
                return setTimeout(function () {
                  return t.todoListLoading = false;
                }, 500);
              }).catch(this.globelErrHandle), this.onOff || (this.onOff = true, this.doTimingService());
            },
            initNews: function () {
              var t = this,
                e = this.PageNo,
                n = this.PageSize,
                r = {
                  PageNo: e,
                  PageSize: n
                };
              Object(u["f"])(r).then(this.globelReqHandle).then(function (e) {
                var n = e.data,
                  r = n.Data;
                n.Msg;
                r.List.length || (t.newList = [], t.newListLoading = false), t.newList = r.List, setTimeout(function () {
                  return t.newListLoading = false;
                }, 500);
              }).catch(this.globelErrHandle);
            },
            doTimingService: function () {
              var t = this,
                e = this.SupplierNo,
                n = {
                  SupplierNo: e,
                  IsProc: 0
                };
              this.timer = setInterval(function () {
                t.initTodoList(n);
              }, 3e5);
            },
            handleClose: function (t) {
              this.$refs.formPw.resetFields(), t();
            },
            handleSubmit: function () {
              var t = this,
                e = false;
              if (this.$refs.formPw.validate(function (t) {
                if (!t) return false;
                e = true;
              }), !e) return false;
              this.dialogLoading = true;
              var n = this.SupplierNo,
                r = this.UserId,
                a = this.UserName,
                i = this.formPw,
                s = i.PW,
                o = i.NP,
                l = {
                  SupplierNo: n,
                  UserId: r,
                  UserName: a,
                  UserPwd: s,
                  UserPwdNew: o
                };
              Object(u["b"])(l).then(this.globelReqHandle).then(function (e) {
                console.log(n);
                var n = e.data;
                n.Data, n.Msg, n.Code;
                t.$refs.formPw.resetFields(), t.dialogVisible = false, t.dialogLoading = false;
                // t.$router.push({
                //   name: "login"
                // });
              }).catch(function (e) {
                setTimeout(function () {
                  return t.dialogLoading = false;
                }, 500), t.globelErrHandle(e);
              });
            },
            handleInputNP: function (t) {
              var e = t.target.value,
                n = /(^\s+)|(\s+$)|\s+/g;
              this.formPw.NP = e.replace(n, "");
            },
            handleInputCP: function (t) {
              var e = t.target.value,
                n = /(^\s+)|(\s+$)|\s+/g;
              this.formPw.CP = e.replace(n, "");
            },
            handleCancel: function () {
              this.$refs.formPw.resetFields(), this.dialogVisible = false;
            },
            toDetail: function (t, e) {
              var n;
              switch (t) {
                case "DB001":
                  n = "orderReply";
                  break;
                case "DB002":
                  n = "secondReply";
                  break;
                case "DB003":
                  n = "orderSearch";
                  break;
                case "DB004":
                  n = "purchase";
                  break;
                case "DB005":
                  n = "return";
                  break;
                case "DB006":
                  n = "contractList";
                  break;
                case "DB007":
                  n = "notReport";
                  break;
                case "DB008":
                  n = "notReport";
                  break;
              }
              return 1 * e > 0 && "DB003" === t ? (this.$router.push({
                name: n,
                params: {
                  ZT: "已回告"
                }
              }), false) : 1 * e > 0 && "DB008" === t ? (this.$router.push({
                name: n,
                params: {
                  TJTX: "是"
                }
              }), false) : 1 * e > 0 && "DB007" === t ? (this.$router.push({
                name: n,
                params: {
                  ZT: "等待回告"
                }
              }), false) : void (1 * e > 0 && this.$router.push({
                name: n
              }));
            },
            toAnnouncement: function (t) {
              this.$router.push({
                name: "notice",
                params: {
                  id: t
                }
              });
            }
          }),
          destroyed: function () {
            clearTimeout(this.timer);
          }
        },
        m = g,
        p = (n("352e"), n("2877")),
        v = Object(p.a)(m, r, a, false, null, null, null);
      e["default"] = v.exports;
    },
    bcef: function (t, e) {
      t.exports = "";
    },
    d57f: function (t, e, n) {
      "use strict";
  
      var r = n("394b"),
        a = n.n(r);
      a.a;
    }
  }]);